package com.dsh.implementSetting.controller;

import com.dsh.implementSetting.entity.ImplementSetting;
import com.dsh.implementSetting.service.ImplementSettingService;
import com.dsh.model.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 执行设置(ImplementSetting)表控制层
 *
 * @author makejava
 * @since 2022-05-12 15:45:18
 */
@Api(tags = "执行设置")
@RestController
@RequestMapping("implementSetting")
public class ImplementSettingController {
    /**
     * 服务对象
     */
    @Resource
    private ImplementSettingService implementSettingService;

    /**
     * 通过主键查询单条数据
     *
     * @return 单条数据
     */
    @ApiOperation(value = "查看执行设置",response = ImplementSetting.class)
    @GetMapping("selectOne")
    public Result selectOne() {
        ImplementSetting implementSetting = implementSettingService.selectOne();
        return Result.success(implementSetting,"");
    }

}